<?php
    $servicos = array('email', 'gmail', 'delicious', 'facebook', 'orkut', 'twitter');
?>

<div class="post">
    <h3><?php echo $html->link($texto['titulo'], '/textos/'.$texto['slug']) ?></h3>
    <h4>por <?php echo $html->link($mondano['nick'], '/'.$mondano['slug']) ?></h4>
    <div class="texto">
        <?php
            echo $texto['texto'];

            ?>
    </div>
        <?php if($mondano['colaborador']): ?>
        <hr />
    <div>
		<?php echo $mondano['sobre']; ?>
    </div>
        <hr />
        <br />
    	<?php endif; ?>
                <!-- AddThis Button BEGIN -->
                <div class="addthis_toolbox addthis_default_style" style="float: left;">
                    <a href="http://www.addthis.com/bookmark.php?v=250&amp;username=mondoredondo" class="addthis_button_compact"
                       addthis:url="<?php echo $html->url('/textos/exibe/'.$texto['slug'], true); ?>"
                       addthis:title='"<?php echo $texto['titulo'].'", de '.$mondano['nick'] ?>, no #MondoRedondo'>Compartilhe</a>
                    <span class="addthis_separator">|</span>
                    <?php foreach($servicos as $servico): ?>
                    <a class="addthis_button_<?php echo $servico ?>"
                       addthis:url="<?php echo $html->url('/textos/exibe/'.$texto['slug'], true); ?>"
                       addthis:title='"<?php echo $texto['titulo'].'", de '.$mondano['nick'] ?>, no #MondoRedondo'></a>
                    <?php endforeach; ?>
                </div>
                <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=mondoredondo"></script>
                <!-- AddThis Button END -->
    <div class="actions">
        <ul>
            <li>
                &nbsp;
            </li>
            <?php if(isset($this->action) && ($this->action != 'exibe')): ?>
            <li><?php echo $html->link('Comentar este texto', array('controller'=>'textos', 'action'=>'exibe', 'id'=>$texto['slug'], 'comentar')); ?></li>
            <?php endif; ?>
        </ul>
    </div>
</div>